import { createApp } from 'vue'
import App from './App.vue'
// unocss
import 'uno.css'
// CSS common style sheet
import '@/styles/common.scss'
// custom directives
import directives from '@/directives/index'
// vue Router
import router from '@/routers'
// vue i18n
import I18n from '@/locales/index'
// pinia store
import pinia from '@/stores'
// errorHandler
import errorHandler from '@/utils/errorHandler'
// vxe-ui
import { setupVxe } from '@/config/vxe'
// element-ui
import { setupElement } from '@/config/element'
//
import '@/config/dayjs'
const app = createApp(App)

app.config.errorHandler = errorHandler
setupVxe(app)
setupElement(app)
app.use(directives).use(router).use(I18n).use(pinia).mount('#app')
